/*
    global.h - global definitions for io_extension system 
	
	
	Author: Benedikt Niedermayr
	

    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation; either version 2 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program; if not, write to the Free Software
    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.


*/

#ifndef _IO_GLOBAL_H
#define _IO_GLOBAL_H

#include <linux/timer.h>
#include <linux/ktime.h>      /* Für Timer Funktionen              */
#include <linux/fs.h>         /* Enthält Flags zur Filebearbeitung */
#include <linux/device.h> 
#include <linux/cdev.h>       /* Unterstützung für /sys/class      */
#include <linux/interrupt.h>
#include <linux/init.h>
#include <linux/module.h>

#include <mach/hardware.h>
#include <mach/gpio.h>
#include <asm/irq.h>
#include <asm/mach/irq.h>
#include <mach/irqs.h>
#include <asm/uaccess.h>      /*enthält die Prototypen für die Funktionen
                               *copy_to_user und copy_from_user
			      			   */






struct cmd;

/* global variables */
extern struct io_com *global_pointer;



/* extern functions(SYMBOLS) from io_com.c */
extern int io_send_cmd_buff(struct io_com *);
extern int io_recv_cmd_buff(struct io_com *);
extern int io_add_cmd(struct io_com *, const char *);
extern int add_param_to_list(const char *, const char *, struct cmd *);



#endif /* _IO_GLOBAL_H */






